<%@ page language="java" pageEncoding="UTF-8"%>

<div class="container">
	<ol class="breadcrumb">
		<li>
			<a href="#/dongtan">动弹</a>
		</li>
		<li>
			<a href="#">{{dongtan.dongtan.author.username}}</a>
		</li>
		<li>
			发表于 {{dongtan.dongtan.create_time | formatDate}}
		</li>
		<li>
			浏览:{{dongtan.dongtan.views_count}} 评论:{{dongtan.dongtan.comment_count}}
		</li>
		<li ng-show="dongtan.module!=null && dongtan.module.length!=0">
			<div class="btn-group">
				<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
					管理
					<span class="caret"></span>
				</button>
				<ul class="dropdown-menu" role="menu">
					<li ng-repeat="module in dongtan.module">
						<a href="javascript:void(0);" ng-click="handle(dongtan.dongtan,module)">{{module.name}}</a>
					</li>
				</ul>
			</div>
		</li>
	</ol>
	<div class="row row-offcanvas">
		<div class="col-xs-12 col-sm-9" style="width:75%;">
			<source model="dongtan.dongtan.content"></source>
		</div>
		<div class="col-xs-6 col-sm-3" style="width:25%;">
			<user-card uid="dongtan.dongtan.author.id"></user-card>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading">
			<i class="glyphicon glyphicon-comment"></i> 评论
		</div>
		<div class="panel-body">
			<comment id="dongtan.dongtan.comment_id"></comment>
		</div>
	</div>
</div>